package com.share.simple.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.simple.model.entity.Role;
import com.share.simple.model.vo.RoleVo;

import java.util.List;

/**
 * @author:caifan
 * @since 2023/7/10
 */
public interface RoleService extends IService<Role> {

    /**
     * 根据用户id查询角色
     * @param userId 用户id
     * @return
     */
    List<RoleVo> listRoleByUserId(Long userId);
}
